package com.dianqiu.common.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import com.dianqiu.base.bean.BaseTO;

/**
 * DqLeagueType entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dq_league_type", catalog = "dq_dev")
public class DqLeagueTypeTO extends BaseTO implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer lgTypeId;
	private String lgTypeName;
	private String lgTypeDescription;
	private Set<DqLeaguesTO> dqLeagueses = new HashSet<DqLeaguesTO>(0);

	@Id
	@Column(name = "LG_TYPE_ID", unique = true, nullable = false)
	public Integer getLgTypeId() {
		return this.lgTypeId;
	}

	public void setLgTypeId(Integer lgTypeId) {
		this.lgTypeId = lgTypeId;
	}

	@Column(name = "LG_TYPE_NAME", nullable = false, length = 100)
	public String getLgTypeName() {
		return this.lgTypeName;
	}

	public void setLgTypeName(String lgTypeName) {
		this.lgTypeName = lgTypeName;
	}

	@Column(name = "LG_TYPE_DESCRIPTION", length = 200)
	public String getLgTypeDescription() {
		return this.lgTypeDescription;
	}

	public void setLgTypeDescription(String lgTypeDescription) {
		this.lgTypeDescription = lgTypeDescription;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dqLeagueType")
	public Set<DqLeaguesTO> getDqLeagueses() {
		return this.dqLeagueses;
	}

	public void setDqLeagueses(Set<DqLeaguesTO> dqLeagueses) {
		this.dqLeagueses = dqLeagueses;
	}

}